package com.neusoft.neuiotms.dcom.model.enums;

import java.util.Arrays;
import java.util.List;

import com.neusoft.neuiotms.common.constant.IDictionary;

public enum StopServiceNoticeSendStatusEnum implements IDictionary {
    send(1, "已发送"), // 已发送
    unsend(2, "未发送"), // 未发送
    discard(3, "废弃"); // 废弃

    private int value;
    private String label;

    private StopServiceNoticeSendStatusEnum(final int value, final String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public int getValue() {
        return this.value;
    }

    @Override
    public String getLabel() {
        return this.label;
    }

    public static StopServiceNoticeSendStatusEnum parse(final int value) {
        StopServiceNoticeSendStatusEnum result = null;
        switch (value) {
        case 1:
            result = StopServiceNoticeSendStatusEnum.send;
            break;
        case 2:
            result = StopServiceNoticeSendStatusEnum.unsend;
            break;
        case 3:
            result = StopServiceNoticeSendStatusEnum.discard;
            break;
        }
        return result;
    }

    public static List<StopServiceNoticeSendStatusEnum> getEnumValues() {
        return Arrays.asList(StopServiceNoticeSendStatusEnum.values());
    }
}
